<?php

/**
 * File system helper class.
 *
 * @version  $Id: filesystem.php 2 2009-10-02 23:06:43Z perfilev $
 * @package  Application
 */

class FileSystem
{
	public static function isDirEmpty($path)
	{
		$dir = dir($path);
		while (false !== ($field = $dir->read())) {
			$dirs[] = $field;
		}
		$dir->close();
		if (count($dirs) == 2) {
			return true;
		}
		return false;
	}
}
